package com.rey.demo.api;

import com.rey.demo.link.ZookeeperDemo;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.ZooKeeper;

/**
 * @ClassName: UpdateApi
 * @Description: TODO
 * @Author reyJojo
 * @Date 2021/12/3 12:49
 * @Version 1.0
 */
public class UpdateApi {
    public static void main(String[] args) {
        try {
            ZooKeeper zooKeeper = ZookeeperDemo.link4ZookeeperApi();
            zooKeeper.setData("/app", "app update".getBytes(), -1);
        } catch (KeeperException | InterruptedException e) {
            e.printStackTrace();
        }
    }
}
